package com.rc.saas.tenant.mapper.member;

import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.member.MemberInfo;
import com.rc.saas.tenant.model.member.MemberInfoExample;
import com.rc.saas.tenant.vo.member.MemberInfoPrintVo;
import com.rc.saas.tenant.search.member.MemberSearch;
import com.rc.saas.tenant.vo.member.MemberResultVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface MemberInfoMapper extends BaseMapper<Long, MemberInfo, MemberInfoExample> {
    //List<MemberListVo> selectPageBySearch1(MemberSearch search);

    //List<MemberListVo> selectPageBySearch(MemberSearch search);

    Long insertReturnId(MemberInfo memberInfo);

    List<MemberResultVo> listMember(MemberSearch search);

    List<MemberInfoPrintVo> exportMemberInfo(MemberSearch memberSearch);

    MemberResultVo selectMemberAndAccountByMobile(@Param("tenantCode") String tenantCode, @Param("mobile") String mobile);

    MemberInfo selectBymobile( @Param("mobile") String mobile);

    MemberResultVo selectMemberById(Long memberId);
}
